// ActionScript file
import com.helloniu.fl.widget.HNCoreCompnent;
import com.helloniu.fl.NCHandler;
import com.helloniu.fl.SOHandler;
import com.helloniu.fl.util.Tool;

private var ncHandler:NCHandler = null;
private var soHandler:SOHandler = null;
private var _userID:String;

public function initConnection(ancHandler:NCHandler, asoHandler:SOHandler, auserID:String):void {
	this.ncHandler = ancHandler;
	this.soHandler = asoHandler;
	this._userID = auserID;
}

private function selectChangeed(e:*):void {
	if(!(selectedChild.getChildAt(0) is HNCoreCompnent)) {
		Tool.alert("==HNTabPanel===error found===");
    	return;
    }

	var hnCComp:HNCoreCompnent = selectedChild.getChildAt(0) as HNCoreCompnent;
	hnCComp.initConnection(ncHandler, soHandler, _userID);
}

public function setUserID(uid:String):void {
	_userID = uid;
}